package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author 王同学
 */
@Mapper
@Repository //这个是去波浪线的 就是idea识别不到那个东西
public interface UserMapper {

 User selectByPhone(@Param("phone") String phone);

 int adduser(@Param("user") User user);
}
